package torpedoserver;

public class Position {

    private double x;
    private double y;

    public Position(double x, double y) {
        this.x = x;
        this.y = y;
    }

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(double y) {
        this.y = y;
    }

    public void correction(Position corr) {
        this.y = this.y - 8;
    }

    @Override
    public String toString() {
        return ("X: " + getX() + " Y: " + getY());
    }
}